home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / cmdity / blcnts38.lha / BlocNotes / Install < prev    next >
Text File  |  1996-04-12  |  6KB  |  215 lines

  1. ; Install script for BlocNotes v 1.3
  2.  
  3. (set Need2 "\nBlocNotes need at least OS2.04")
  4. (if (< (/ (getversion) 65536) 37)
  5.   (abort Need2)
  6. )
  7.  
  8. (set CatHelp "You can have blocnotes localized to a particular language.")
  9. (set POPKEYHelp "With this hotkey you can popup Blocnotes main window.")
  10. (set NOTEKEYHelp "With this hotkey you can open a new note.")
  11. (set DIRHelp "If you specify a path, a new directory called NOTES will be created in it.\nThe notes will be stored in this directory.")
  12. (set SCNHelp "With this library installed, Blocnotes have a better control over public screen.\nIt's recommended to install it.")
  13. (set ASKDIRHelp "If you install blocnotes in SYS:WBStartup (default), it will be launched automatically at every startup.\nIf you want only to test BN, copy it in another place, changing the destination directory")
  14. (set REXXHelp "These script enhance BlocNotes with new or more particular functions.\n  Scroller.rexx creates scrolling text.\n  ShowNote.rexx controls showing of notes.\n  OpenNote.pvrx is a script for use with ProVector.\n  PrepMail.rexx and SendMail.rexx permit to use Blocnotes as a simpler mailer (you need, of course, a TCP interface and a sendmail program)\n  ArchiveNote.rexx hide notes archiving them \n  Note2WB.rexx simply moves a note from a screen to workbench.")
  15. (set GUIDEHelp "This is the doc of blocnotes in .guide format")
  16. (set DELHelp "At startup, Blocnotes loads automatically the files not in note-format, in its directory, as notes.\nIf you select yes to this option all those file will be deleted.\nThis also applies for file you copy in notes directory while BN is running.")
  17.  
  18. (set MySou (pathonly @icon) )
  19.  
  20. (set vernum (getversion (tackon MySou "blocnotes") ) )
  21. (set ver (/ vernum 65536))
  22. (set rev (- vernum (* ver 65536) ) )
  23. (set Vers (cat ver "." rev))
  24.  
  25. (welcome)
  26.  
  27. (message (cat "Welcome to BlocNotes " Vers ) " Installer script\n\n\n\n© 1996 R.Ferorelli")
  28.  
  29. (set CompleteDest
  30.    (askdir
  31.       (prompt "\nSelect a path where to install BlocNotes main file")
  32.       (help ASKDIRHelp)
  33.       (default "SYS:WBStartup")
  34.    )
  35. )
  36.  
  37. (copyfiles
  38.    (prompt "Coping Blocnotes")
  39.    (source MySou)
  40.    (infos)
  41.    (dest CompleteDest)
  42.    (choices "BlocNotes")
  43. )
  44.  
  45. ; Guide file.
  46. ; *************************
  47. (set GuideDest
  48.    (askdir
  49.       (prompt "\nSelect a directory where to install BlocNotes.guide file.\n")
  50.       (help @askdir-help)
  51.       (default "AMIGAGUIDE:")
  52.    )
  53. )
  54. (copyfiles
  55.    (prompt "Coping Blocnotes.guide")
  56.    (help GUIDEHelp)
  57.    (source MySou)
  58.    (infos)
  59.    (dest GuideDest)
  60.    (confirm)
  61.    (choices "BlocNotes.guide")
  62. )
  63.  
  64. ; Rexx files
  65. ; *************************
  66. (set RexxDest
  67.    (askdir
  68.       (prompt "\nSelect a directory where to copy arexx scripts.\n")
  69.       (help @askdir-help)
  70.       (default "REXX:")
  71.    )
  72. )
  73.  
  74. (copyfiles
  75.    (prompt "Coping arexx scripts")
  76.    (help REXXHelp)
  77.    (source MySou)
  78.    (dest RexxDest)
  79.    (confirm)
  80.    (choices "scroller.rexx" "shownote.rexx" "OpenNote.pvrx" "PrepMail.rexx" "SendMail.rexx" "Archivenote.rexx" "Note2WB.rexx")
  81. )
  82.  
  83. (copylib
  84.    (prompt "Coping screennotify.library")
  85.    (help SCNHelp)
  86.    (source (tackon MySou "libs/screennotify.library"))
  87.    (dest "LIBS:")
  88.    (optional nofail)
  89.    (confirm)
  90. )
  91.  
  92. (set LangBit
  93.    (askoptions
  94.       (prompt "\nDo yo want to install languages")
  95.       (help CatHelp)
  96.       (choices "italiano")
  97.       (default 1)
  98.    )
  99. )
  100. (if (IN LangBit 0)
  101.    (copyfiles
  102.       (prompt "Coping the catalog 'italiano'")
  103.       (help @copyfiles-help)
  104.       (source (tackon MySou "catalogs/italiano/blocnotes.catalog") )
  105.       (dest "locale:catalogs/italiano/")
  106.    )
  107. )
  108.  
  109. (set DestName (tackon CompleteDest "BlocNotes"))
  110.  
  111. (Set Hotkey (askstring
  112.             (prompt "Insert Hotkey for interface popup")
  113.             (default "control alt n")
  114.             (help POPKEYHelp)
  115.         )
  116. )
  117. (tooltype
  118.    (settooltype "CX_POPKEY" HotKey)
  119.    (dest DestName)
  120. )
  121.  
  122. (Set Notekey (askstring
  123.             (prompt "Insert Hotkey for notes popup")
  124.             (default "control escape")
  125.             (help NOTEKEYHelp)
  126.         )
  127. )
  128. (tooltype
  129.    (settooltype "NOTESKEY" NoteKey)
  130.    (dest DestName)
  131. )
  132.  
  133. (set Direct
  134.    (askdir
  135.       (prompt "\nSelect a path. A directory called NOTES will be created here.\n(The notes will be stored here.)")
  136.       (help DIRHelp)
  137.       (default "SYS:")
  138.    )
  139. )
  140.  
  141. (makedir (tackon Direct "NOTES"))
  142.  
  143. (tooltype
  144.    (settooltype "DIRECTORY" (tackon Direct "NOTES"))
  145.    (dest DestName)
  146. )
  147.  
  148. (set DELBit
  149.    (askbool
  150.       (prompt "\nDo you want files, that are not notes, to be automatically deleted after being imported?")
  151.       (help DELHelp)
  152.       (default 0)
  153.    )
  154. )
  155.  
  156. (if (= DELBit 1)
  157.    (tooltype
  158.       (settooltype "DELETEFILES" "YES")
  159.       (dest DestName)
  160.    )
  161. )
  162.  
  163. (set POPBit
  164.    (askbool
  165.       (prompt "\nDo you want interface window to popup at startup?")
  166.       (help "This affects the CX_POPUP tooltype.")
  167.       (default 0)
  168.    )
  169. )
  170.  
  171. (if (= POPBit 1)
  172.    (tooltype
  173.       (settooltype "CX_POPUP" "YES")
  174.       (dest DestName)
  175.    )
  176. )
  177.  
  178. (if (= POPBit 0)
  179.    (tooltype
  180.       (settooltype "CX_POPUP" "NO")
  181.       (dest DestName)
  182.    )
  183. )
  184.  
  185. (tooltype
  186.    (settooltype "CMDF6" (tackon RexxDest "Prepmail.rexx"))
  187.    (dest DestName)
  188. )
  189.  
  190. (tooltype
  191.    (settooltype "CMDF7" (tackon RexxDest "Sendmail.rexx"))
  192.    (dest DestName)
  193. )
  194.  
  195. (tooltype
  196.    (settooltype "CMDF8" (tackon RexxDest "Note2WB.rexx"))
  197.    (dest DestName)
  198. )
  199.  
  200. (tooltype
  201.    (settooltype "CMDF9" (tackon RexxDest "ArchiveNote.rexx"))
  202.    (dest DestName)
  203. )
  204.  
  205. (tooltype
  206.    (settooltype "CMDF10" "'hide all'")
  207.    (dest DestName)
  208. )
  209.  
  210. (message "You can run the program and change other parameters directly in it.\nPlease read documentation for other options")
  211.  
  212. (set @default-dest CompleteDest )
  213.         (exit)
  214.  
  215.